package me.flyray.bsin.facade.service;

import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import java.util.Map;

@Path("/admin/task")
public interface HysqAdminTaskService {

    /**
     * 创建任务
     */
    @POST
    @Path("createTask")
    @Produces("application/json")
    public Map<String,Object> createTask(Map<String, Object> requestMap);

    /**
     * 发布任务
     */
    @POST
    @Path("publishTask")
    @Produces("application/json")
    public Map<String,Object> publishTask(Map<String, Object> requestMap);

    /**
     * 查询任务列表
     */
    @POST
    @Path("getTaskList")
    @Produces("application/json")
    public Map<String,Object> getTaskList(Map<String, Object> requestMap);

    /**
     * 查询待审核任务
     */
    @POST
    @Path("getUnauditTask")
    @Produces("application/json")
    public Map<String,Object> getUnauditTask(Map<String, Object> requestMap);

    /**
     * 任务审核
     */
    @POST
    @Path("auditTask")
    @Produces("application/json")
    public Map<String,Object> auditTask(Map<String, Object> requestMap);
}
